﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
using WJP.DataPortal.Helper;

namespace WJP.DataPortal.WCF
{
    /// <summary>
    /// 定义WCF数据门户的服务契约
    /// </summary>
    [ServiceContract]
    public interface IWcfPortal : IApiPortal
    {
        /// <summary>Get an existing business object.</summary>
        /// <param name="request">The request parameter object.</param>
        [OperationContract]
        [UseNetDataContract]
        WcfResponse Fetch(FetchRequest request);

        /// <summary>Update a business object.</summary>
        /// <param name="request">The request parameter object.</param>
        [OperationContract]
        [UseNetDataContract]
        WcfResponse Update(UpdateRequest request);
    }
}
